const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        port: 5000,
        proxy: {
            '/index': {
                //环境变量
                target: process.env.VUE_APP_BASE_URL,
                ws: false,
                changOrigin: true, //允许跨域
                pathRewrite: {
                    '^/*': ''
                }
            }
        }
    }
})
